<?php

use Drupal\shusy_city\Entity\ShusyCity;

function shusy_city_shusy_city_add_page() {
  $e = new ShusyCity();
  module_load_include('inc', 'shusy_city', 'shusy_city.forms');
  return drupal_get_form('shusy_city_shusy_city_entity_form', $e, 'add');
}

function shusy_city_shusy_city_view_page(ShusyCity $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_city_shusy_city_edit_page(ShusyCity $e) {
  module_load_include('inc', 'shusy_city', 'shusy_city.forms');
  return drupal_get_form('shusy_city_shusy_city_entity_form', $e, 'edit');
}

function shusy_city_shusy_city_delete_page(ShusyCity $e) {
  module_load_include('inc', 'shusy_city', 'shusy_city.forms');
  return drupal_get_form('shusy_city_shusy_city_delete_form', $e);
}

